import {randomColor} from "ts-mango";
import {EChartsOption} from "echarts";

export const wordCloudOption = {
    series: [{
        type: 'wordCloud',
        //maskImage: maskImage,
        sizeRange: [15, 80],
        rotationRange: [-45,0,45,90],
        rotationStep: 45,
        gridSize: 8,
        shape: 'pentagon',
        width: '100%',
        height: '100%',
        data: [{name:"1",value:1}]
    }],
    textStyle: {
        color: function () {
            return 'rgb(' + [
                Math.round(Math.random() * 160),
                Math.round(Math.random() * 160),
                Math.round(Math.random() * 160)
            ].join(',') + ')';
        }
    },

}
